<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var number = 2;  // 全局变量 
var obj = {   // 对象 
	number : 4,
	fn1 : (function(){
		this.number *= 2; 

		number = number * 2; 

		var number = 3;
		return function(){
            // alert(this);
			this.number *= 2;
            // alert(this.number+'%');
			number *= 3; 
			alert(number);
		}
	})(),
	fn2 : function(){
        alert(this.number+'fn2');
        // this.number : 8 
		this.number *= 2;
	}
};
// var fn1 = obj.fn1; 
// alert(number);
// fn1();
// obj.fn1(); 
// obj.fn2(); 
// alert(window.number);

// alert(obj.number); 
obj.fn1(); 
//  obj.fn1() 
// fn1();


obj.fn2();

    </script>
</body>
</html>